﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs" Inherits="PASNew.U.Controls.Login" %>








<asp:Panel runat="server" ID="pnlLogin" DefaultButton="LBLogin">
<div class="border">
    <asp:Label ID="lblEmail" runat="server" Text="Email Address" AssociatedControlID="txtBoxEmail"></asp:Label>
    <br />
    <asp:TextBox ID="txtBoxEmail" runat="server"></asp:TextBox><br />
    <asp:RequiredFieldValidator ID="EmailCheck" runat="server" ErrorMessage="Please enter your email address."
        ForeColor="black" ControlToValidate="txtBoxEmail" Display="Dynamic" ValidationGroup="login"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="EFormatCheck" runat="server" ErrorMessage="The email address you have entered is not valid, please enter your valid email address"
    ControlToValidate="txtBoxEmail" ForeColor="black" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic" ValidationGroup="login"></asp:RegularExpressionValidator>



<asp:Label ID="lblPassword" runat="server" Text="Password" AssociatedControlID="txtBoxPassword"></asp:Label>
<br />
<asp:TextBox ID="txtBoxPassword" runat="server" TextMode="Password" CssClass="textbox"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="PasswordCheck" runat="server" ErrorMessage="Please enter your password."
    ForeColor="black" ControlToValidate="txtBoxPassword" Display="Dynamic" ValidationGroup="login"></asp:RequiredFieldValidator>



<asp:LinkButton ID="LBLogin" runat="server" OnClick="LBLogin_Click" CssClass="fright" Text="Login" style="margin-right: 45px;margin-top:5px;" ValidationGroup="login"></asp:LinkButton>


<asp:PlaceHolder runat="server" ID="ctlError" Visible="false">
<br /><br />
<asp:Label ID="lblUnsuccessfull" runat="server" Text="The email address and password combination you have entered is incorrect."
    ForeColor="black"></asp:Label>
	</asp:PlaceHolder>
 </div>

 <p>
		Please login using your registered email address and password, if you do not yet have valid login credentials then please contact your regional administrator or <a href="/pages/contact.aspx">contact us</a> if you would like to register.
		</p>
</asp:Panel>

<asp:Panel runat="server" ID="pnlLoggedIn" Visible="false">
<div class="border">
<asp:Label runat="server" ID="lblWelcome" Text="Welcome back "></asp:Label><strong><asp:Label runat="server" ID="lblLogingName"></asp:Label></strong>
</div>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
</p>
<p>
<asp:LinkButton runat="server" ID="btnLogout" Text="Logout" 
		onclick="btnLogout_Click" CausesValidation="false"></asp:LinkButton></p>
</asp:Panel>
